from django.urls import path, re_path
from . import views

app_name = 'students'

urlpatterns = [
    path('index/', views.index, name='index'),
    # path('detail/<id>/', views.detail),
    # path('detail/<int:id>/', views.detail, name='detail'),
    path('detail/<pk>/', views.detail, name='detail'),
    path('detail_1/<pk>/', views.DetailView.as_view(), name='detail1'),
    path('students_list/', views.students_list, name='list'),
    # path('students/list/<int:year>/<int:month>/', views.students_list),
    # re_path('^list/(?P<year>\d{4})/(?P<month>[1-9]|1[0-2])/$', views.students_list),
    # path('subject/<int:year>/<int:month>/<slug:subject>/', views.students_subject)
    path('demo/', views.test_demo, name='demo'),
    path('delete/<pk>/', views.student_delete, name='delete'),
    path('add/', views.student_add, name='add'),
    path('edit/<pk>/', views.student_edit, name='edit'),
    path('login/', views.login_form, name='login'),
    path('logout/', views.logout_form, name='logout'),
    path('register/', views.register_form, name='register'),
    path('register_1/', views.RegisterView.as_view(), name='register1'),
    path('edit_form/<pk>/', views.edit_form, name='edit_form'),
]
